package com.talkweb.platform.commonapi.entity.db;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
@Entity
@Table(name = "BPM_RuleList")
@ApiModel(value = "BpmRuleList", description = "规则列表")
public class BpmRuleList implements Serializable {
	
	@Id
	@Column(name = "WF_OrUnid")
	@GeneratedValue(strategy = GenerationType.IDENTITY, generator = "SELECT REPLACE(UUID(),'-','')")
    private String orUnId;

	@Column(name = "WF_Appid")
	@ApiModelProperty(value = "所属应用", required = false)
    private String appId;

	@Column(name = "Folderid")
	@ApiModelProperty(value = "所属节点", required = false)
    private String folderid;

	@Column(name = "ruleNum")
	@ApiModelProperty(value = "规则id", required = false)
    private String ruleNum;

	@Column(name = "ruleName")
	@ApiModelProperty(value = "规则名", required = false)
    private String ruleName;

	@Column(name = "ruleType")
	@ApiModelProperty(value = "规则类型", required = false)
    private String ruleType;

	@Column(name = "classPath")
	@ApiModelProperty(value = "规则类型", required = false)
    private String classPath;

	@Column(name = "eventType")
	@ApiModelProperty(value = "", required = false)
    private String eventType;

	@Column(name = "singleton")
	@ApiModelProperty(value = "", required = false)
    private String singleton;

	@Column(name = "compileFlag")
	@ApiModelProperty(value = "", required = false)
    private String compileFlag;

	@Column(name = "compileDate")
	@ApiModelProperty(value = "", required = false)
    private String compileDate;

	@Column(name = "roles")
	@ApiModelProperty(value = "", required = false)
    private String roles;

	@Column(name = "STATUS")
	@ApiModelProperty(value = "", required = false)
    private String status;

	@Column(name = "sortNum")
	@ApiModelProperty(value = "", required = false)
    private String sortNum;

	@Column(name = "WF_CacheFlag")
	@ApiModelProperty(value = "", required = false)
    private String cacheFlag;

	@Column(name = "WF_NoUpdate")
	@ApiModelProperty(value = "", required = false)
    private String noUpdate;

	@Column(name = "WF_Version")
	@ApiModelProperty(value = "", required = false)
    private String version;

	@Column(name = "WF_AddName")
	@ApiModelProperty(value = "", required = false)
    private String addName;

	@Column(name = "WF_AddName_CN")
	@ApiModelProperty(value = "", required = false)
    private String addNameCn;

	@Column(name = "WF_DocCreated")
	@ApiModelProperty(value = "", required = false)
    private String docCreated;

	@Column(name = "WF_LastModified")
	@ApiModelProperty(value = "", required = false)
    private String lastModified;

	@Column(name = "ruleCode")
	@ApiModelProperty(value = "", required = false)
    private String ruleCode;

	@Column(name = "xmlData")
	@ApiModelProperty(value = "", required = false)
    private String xmlData;
    
    private static final long serialVersionUID = 1L;


}